
const EventEmitter = require('./05-event.js'),
      util = require('util');

class Radio extends EventEmitter{
  constructor(station){
    super();
    this.#station=station;
  }

  #open=setTimeout(()=>{
    this.emit('open',this.#station);
    clearTimeout(this.#open);
  },0);

  #stop= setTimeout(()=>{
    this.emit('stop',this.#station);
    clearTimeout(this.#stop);
  },5000);

  #station;
}

module.exports=Radio;
